#include"Poller.h"
#include"EPollPoller.h"

#include<stdlib.h>

Poller* Poller::newDefaultPoller(EventLoop *Loop)
{
    if(::getenv("MUDUO_USE_POLL"))
    {
        return nullptr;
    }else{
        
        return new EPollPoller(Loop);
    }
}